import Mock from 'mockjs';

// Mock.mock(/^\/api\/project\/?$/, 'get', {
//   code: 0,
//   msg: '',
//   'data|3-6': [
//     {
//       id: '@uuid',
//       name: '@ctitle(1, 10)',
//       'url|1': ['@url', null],
//       'github|1': ['@url', null],
//       'description|1-4': ['@cparagraph(1, 5)'],
//       thumb: '@image(300x250, @color, #fff, @natural)'
//     }
//   ]
// });

Mock.mock(/^\/api\/project\/?$/, 'get', {
  code: 0,
  msg: '',
  data: [
    {
      id: '1',
      name: '【毕业设计】基于用户画像的电影推荐系统',
      url: 'https://www.bilibili.com/video/BV1LmVie9EJe/',
      github: 'https://gitee.com/grx330/MovieRecommendSystem',
      'description|1-4': ['@cparagraph(1, 5)'],
      thumb: '@image(300x250, @color, #fff, Project1)'
    },
    {
      id: '2',
      name: 'ReactNative食谱app',
      url: 'https://www.bilibili.com/video/BV1Yu4y1A7PD/',
      github: 'https://gitee.com/grx330/rn-recipe',
      'description|1-4': ['@cparagraph(1, 5)'],
      thumb: '@image(300x250, @color, #fff, Project2)'
    },
    {
      id: '3',
      name: '实时聊天应用程序VueChat',
      url: 'https://www.bilibili.com/video/BV1ej411t7Df/',
      github: 'https://gitee.com/grx330/VueChat',
      'description|1-4': ['@cparagraph(1, 5)'],
      thumb: '@image(300x250, @color, #fff, Project3)'
    },
    {
      id: '4',
      name: '企业门户网站管理系统及客户端',
      url: 'https://www.bilibili.com/video/BV1SN4y1X7Jn/',
      github: 'https://gitee.com/grx330/company-system',
      'description|1-4': ['@cparagraph(1, 5)'],
      thumb: '@image(300x250, @color, #fff, Project4)'
    }
  ]
});
